﻿using Serilog;
using Volo.Abp.DependencyInjection;

namespace Cjj.Exam.Hangfire
{
    public class CjjVxJobSchBackWork : ITransientDependency
    {
        //public ITongJiDaiLiShiCaseService _tongJiDaiLiShiCaseService { get; set; }
        private ILogger<CjjVxJobSchBackWork> _logger = null;
        public CjjVxJobSchBackWork(ILogger<CjjVxJobSchBackWork> logger)
        {
            _logger = logger;
        }
        public async Task Run()
        {
            // await _tongJiDaiLiShiCaseService.TongJiAsync();
            _logger.LogInformation($"这是 CjjVxJobSchBackWorkinfo 日志：{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
            Log.Information($"这是 CjjVxJobSchBackWorkLog info 日志：{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");

            _logger.LogError("这是CjjVxJobSchBackWork错误日志");
            Log.Error("这是CjjVxJobSchBackWork Log错误日志");

            _logger.LogDebug("这是 CjjVxJobSchBackWork Information日志");
            Log.Debug("这是 CjjVxJobSchBackWork Log Debug日志");

        }
    }
}
